package com.jmpt.fangbohui;

public class Constants {

	/**
	 * 应用调试阶段
	 */
	public static boolean DEBUG_LOG = true;

	/**
	 * 配置文件相关
	 * @package com.jmpt.fangbohui
	 * @author Victor 
	 * @description:
	 *
	 */
	public static final class SharedPreferences {
		public static final String NAME = "inman";
		/**
		 * 用户信息
		 */
		public static final String USER = "user";
		public static final String HISTORY = "history";
		/**
		 * 版本信息
		 */
		public static final String VERSION_CODE = "version_code";
		
		/**
		 * 用户登录账户
		 */
		public static final String USERNAME = "username";
		public static final String PASSWORD = "password";
		
		/**
		 * 临时缓存城市地址
		 */
		public static final String CACHECITY = "cachecity";
		public static final String CACHEDROPDOWN = "cachedropdown";
		public static final String HOME_RECOMMENDS_DATA = "home_recommends_data";
		public static final String HOME_PROMOTES_DATA = "home_promotes_data";
		public static final String HOME_BANNERS_DATA = "home_banners_data";
		
		public static final String JPUSH_USER_ID = "jpush_user_id";
		public static final String PUSH_USER_ID = "push_user_id";
		
		/**
		 * 历史搜索关键词 
		 */
		public static final String SEARCH_KEY_LIST = "search_key_list";
		
		public static final String RENT_HOUSE_FILTER = "rent_house_filter";
		public static final String NEW_HOUSE_FILTER = "new_house_filter";
		public static final String OLD_HOUSE_FILTER = "old_house_filter";
		public static final String AGENT_LIST_FILTER = "agent_list_filter";
		
	}
	/**
	 * 
	 *
	 * @package com.jmpt.fangbohui
	 * @author cangJie
	 * @description URL类
	 *
	 */
	public static final class URL{
		public static final String WEB = "http://www.cnfbh.com/apptest/";
		/**
		 * 用户登录和注册url
		 */
		public static final String USERLOGINURL = WEB+"userLogin.php?action=login";
		public static final String USERREGISTERURL = WEB+"userReg.php";
		/**
		 * 经纪人登录和注册url
		 */
		public static final String BROKERLOGINURL = WEB+"agentLogin.php?action=login";
		public static final String BROKERREGISTERURL = "http://www.cnfbh.com/apptest/agentRegSubmit.php";
		/**
		 * 新增客户报备上传地址
		 */
		public static final String ADDCLIENTURL = WEB+"agentaddguestsave.php";
		/**
		 * 删除房源
		 */
		public static final String DELETEHOUSE = "http://www.cnfbh.com/App/Ho_House/del";
		
		/**
		 * 批量删除房源
		 */
		public static final String BATCHDELETEHOUSE = "http://www.cnfbh.com/App/Ho_House/batchDel";
		
		/**
		 * 批量发布房源
		 */
		public static final String BATCHPUBLISH = "http://www.cnfbh.com/App/Ho_House/batchPublish";
		
		/**
		 * 批量待发布房源
		 */
		public static final String BATCHUNPUBLISH = "ST：http://www.cnfbh.com/App/Ho_House/batchNoPublish";
		/**
		 * 批量刷新房源
		 */
		public static final String BATCHREFRESH = "http://www.cnfbh.com/App/Ho_House/batchRefresh";

		/**
		 * 发布房源
		 */
		public static final String PUBLISH = "http://www.cnfbh.com/App/Ho_House/publish";
		
		/**
		 * 待发布房源
		 */
		public static final String UNPUBLISH = "http://www.cnfbh.com/App/Ho_House/noPublish";
		/**
		 * 刷新房源
		 */
		public static final String REFRESH = "http://www.cnfbh.com/App/Ho_House/refresh";
		/**
		 * 新增客户报备 获得意向城市列表
		 */
		public static final String ADDCLIENTADDRESSURL = WEB+"agentaddguest.php";
		/*
		 * 二手房源提交地址
		 */
		public static final String SecondaryHousingSubmittedURL =WEB+"eshouseaddasave.php";
		/*
		 * 二手房源修改地址
		 */
		public static final String CHANGE_HOUSE_SAVE ="http://www.cnfbh.com/App/Ho_House/edit1save";
		/*
		 * 二手房下拉列表数据
		 */
		public static final String SecondaryHousingDropDown =WEB+"eshouseadd.php";
		
		/*
		 * 图片测试上传
		 */

		public static final String PHOTO =WEB+"eshousepicupdate.php";
		
		/*
		 * 已报备客户
		 */
		public static final String ALREADYBBCLIENT =WEB+"agentGuestList.php";
		/*
		 * 预约看房客户列表
		 */
		public static final String SEEHOUSECLIENT =WEB+"agentappointment.php";
		/*
		 * 经纪人个人信息读取
		 */
		public static final String READBROKERINFO =WEB+"agenteditinfo.php?action=readinfo";
		/*
		 * 经纪人个人信息修改
		 */
		public static final String CHANGEBROKERINFO =WEB+"agenteditinfo.php?action=updateinfo";	
		/*
		 * 经纪人密码修改
		 */
		public static final String CHANGEBROKERPASSWORD =WEB+"agenteditinfo.php?action=editpw";	
		/*
		 * 用户个人信息读取
		 */
		public static final String READUSERINFO ="http://www.cnfbh.com/apptest/person_info.php?action=readinfo";
		/*
		 * 用户个人信息修改
		 */
		public static final String CHANGEUSERINFO =WEB+"person_info.php?action=updatainfo";	
		/*
		 * 用户密码修改
		 */
		public static final String CHANGEUSERPASSWORD =WEB+"person_info.php?action=editpw";	
		
		/**
		 * 二手房订单
		 */
		public static final String SECONDHOUSEORDER =WEB+"eshouses_order.php";		
		
		/**
		 * 经纪人个人网店首页
		 */
		public static final String BROKERPERSONNETSTOREHOMEPAGE =WEB+"broker_shop.php";	
		
		/**
		 * 经纪人个人网店二手房、租房
		 */
		public static final String BROKERPERSONNETSTOREHOMEPAGELIST =WEB+"broker_shop_eslist.php";	
		
		

		/**
		 * 版本更新
		 */
		public static final String CHECK_VERSION =WEB+"appUpdate.php";	

		/**
		 * 房源管理
		 */
		public static final String MANAGER_HOUSE ="http://www.cnfbh.com/App/Ho_House/manage";	
		
		/**
		 * 根据HouseId获取房源具体信息
		 */
		public static final String CHANGE_READ_ENTER_HOUSE ="http://www.cnfbh.com/App/Ho_House/edit1read";	
		
		
		/**
		 * User upload icon
		 */
		public static final String USER_UPLOAD_ICON ="http://www.cnfbh.com/apptest/person_info.php?action=updatepic";	
		
		
		/**
		 * Broker upload icon
		 */
		public static final String BROKER_UPLOAD_ICON =WEB+"agenteditinfo.php?action=updatepic";	
		
		
	}
	
	/**
	 * @author Victor
	 * 应用中所有分页 的条目数量
	 */
	public static final class limit{
		
		/**
		 * 新房列表每页数量
		 */
		public static final int NEW_HOUSE_PAGE_LIMIT = 20;
		/**
		 * 二手房列表每页数量
		 */
		public static final int ERSHOU_HOUSE_PAGE_LIMIT = 20;
		/**
		 * 租房列表每页数量
		 */
		public static final int RENT_HOUSE_PAGE_LIMIT = 20;
		
	}

}
